<template>
  <div>
    <vue-office-docx :src="src" @rendered="rendered" />
  </div>
</template>

<script setup>
//引入VueOfficeDocx组件相关
import VueOfficeDocx from '@vue-office/docx'
import '@vue-office/docx/lib/index.css'
//	获取父组件传递的资源url
const props = defineProps({
  src: {
    type: String,
    default: ''
  }
})

const rendered = (e) => {
  console.log(e)
}
</script>

<style lang="scss" scoped>
</style>